//
//  RSWMessageOperation.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/12/12.
//  Copyright © 2016年 com.xtion.crm. All rights reserved.
//

@interface RSWMessageOperation : XMSDataOperationManager

+(void)setTokenID:(NSString*)tokenID;

+(NSString*)tokenID;

/**
 *  注册接收消息推送
 */
+(BOOL)registerNotification;

/**
 *  初始化消息接收中心
 */
+(void)initRSWMessageOperation;

/**
 *  释放消息接收中心
 */
+(void)releaseRSWMessageOperation;

/**
 *  处理推送消息
 *
 *  @param pushNoti 推送消息
 */
+(void)savePushNotification:(NSDictionary*)pushNoti;

+(void)suspendOperatePushNotification;

+(void)resumeOperatePushNotification;

/**
 *  绑定推送
 */
+(void)bindPushAsyncCompletion:(void(^)(NSInteger nResult,BOOL bResult,NSError *error))completion;
/**
 *  获取聊天离线消息
 *
 *  @param newThread    是否在当前线程中开启新的线程
 *  @param complete 线程（非主线程）返回
 */
+(void)getChatOfflineMessage:(BOOL)newThread complete:(void(^)(NSInteger nResult))complete;

@end
